Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync CRDTs with lexbox during crdt merge #1206

Merged
merged 8 commits into from
Nov 11, 2024

Conversation

hahn-kev
Copy link
Collaborator

@hahn-kev hahn-kev commented Nov 4, 2024

previously crdt changes would only stay on the fw-headless server, now they are synced to lexbox. We're calling the API as that allows the clients to be notified directly, if we inserted directly into the db then clients would not be notified.

I also tweaked the sync api so it closes the fwdata project once it's done

closes #1172

@hahn-kev hahn-kev requested a review from rmunn November 4, 2024 10:07
Copy link

github-actions bot commented Nov 4, 2024

C# Unit Tests

75 tests   75 ✅  5s ⏱️
13 suites   0 💤
 1 files     0 ❌

Results for commit 5799ad6.

♻️ This comment has been updated with latest results.

myieye
myieye previously approved these changes Nov 5, 2024
Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have a handful of ideas and such 👍

backend/FwHeadless/HttpClientAuthHandler.cs Show resolved Hide resolved
backend/FwHeadless/HttpClientAuthHandler.cs Show resolved Hide resolved
backend/FwHeadless/Program.cs Show resolved Hide resolved
backend/FwHeadless/ProjectLookupService.cs Show resolved Hide resolved
backend/FwHeadless/Program.cs Outdated Show resolved Hide resolved
backend/FwHeadless/Program.cs Outdated Show resolved Hide resolved
backend/FwLite/LocalWebApp/SyncService.cs Show resolved Hide resolved
backend/LexCore/Auth/LexAuthConstants.cs Show resolved Hide resolved
# Conflicts:
#	backend/FwHeadless/SendReceiveHelpers.cs
#	backend/FwHeadless/appsettings.Development.json
#	backend/FwHeadless/appsettings.json
#	backend/FwLite/LcmCrdt/LcmCrdtKernel.cs
myieye
myieye previously approved these changes Nov 7, 2024
Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I've left all my cents and this looks good 👍

Copy link
Contributor

@rmunn rmunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been wanting to change the API endpoint from /sync to /api/crdt-sync (or /api/crdtSync or /api/crdtsync) for a while now, and this seems like the right PR to do it in. Other than that it looks good.

@hahn-kev hahn-kev merged commit 14b927d into develop Nov 11, 2024
6 of 7 checks passed
@hahn-kev hahn-kev deleted the feat/sync-crdt-during-fw-headless-merge branch November 11, 2024 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

execute CRDT sync during/after CrdtMerge
3 participants